import request from '@/utils/request'

// 查询用户和交易所关联列表
export function listPlatform(query) {
  return request({
    url: '/platform/platform/list',
    method: 'get',
    params: query
  })
}

// 查询用户和交易所关联详细
export function getPlatform(platform) {
  return request({
    url: '/platform/platform/' + platform,
    method: 'get'
  })
}

// 新增用户和交易所关联
export function addPlatform(data) {
  return request({
    url: '/platform/platform',
    method: 'post',
    data: data
  })
}

// 修改用户和交易所关联
export function updatePlatform(data) {
  return request({
    url: '/platform/platform',
    method: 'put',
    data: data
  })
}

// 删除用户和交易所关联
export function delPlatform(platform) {
  return request({
    url: '/platform/platform/' + platform,
    method: 'delete'
  })
}

// 导出用户和交易所关联
export function exportPlatform(query) {
  return request({
    url: '/platform/platform/export',
    method: 'get',
    params: query
  })
}